<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" import="java.net.URLEncoder"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<link href="<c:url value='/css/draw.css'/>" rel="stylesheet">
<link href="<c:url value='/css/easyui.css'/>" rel="stylesheet">
<link href="<c:url value='/css/icon.css'/>" rel="stylesheet">
<script src="<c:url value='/js/jquery.min.js'/>"></script>
<script type="text/javascript"
	src="<c:url value='/js/jquery.easyui.min.js'/>"></script>
<div class="page-header">
	<h3 style="margin-top: auto">航电设备详细信息</h3>
</div>
<div class="row-fluid">
	<div>
		<table class="table table-hover" style="width: 90%">
			<thead>
				<tr>
					<th style="width: 15%">属性</th>
					<th style="width: 85%">详细信息</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>名称</td>
					<td><c:out value="${item.name}" /></td>
				</tr>
				<tr>
					<td>中文名称</td>
					<td><c:out value="${item.cnName}" /></td>
				</tr>
				<tr>
					<td>类型</td>
					<td><c:out value="${item.equiptype}" /></td>
				</tr>
				<tr>
					<td>描述信息</td>
					<td><c:out value="${item.description}" /></td>
				</tr>
				<tr>
					<td>属性类别</td>
					<td><a href="<%=request.getContextPath()%>/domain_entity/equipment/category/${item.category.id}"+><c:out value="${item.category.type}" /></a></td>
				</tr>
				<tr>
					<td>属性列表</td>
					<td><c:if test="${!empty item.category.properties}">
								<c:forEach items="${item.category.properties}" var="property">
									<p>类型:<c:out value="${property.type.name}" />&nbsp;&nbsp;&nbsp;名称:<c:out value="${property.name}" /></p>
								</c:forEach>
							</c:if>
					</td>
				</tr>
				<tr>
					<td>操作</td>
					<td><div class="btn-group" >
							<button class="btn" onclick="javascript:$('#myModal').dialog('open')"><i class="icon-trash"></i>&nbsp;删除</button>
						</div></td>
				</tr>
			</tbody>
			<tfoot>
			</tfoot>
		</table>

	</div>
</div>
<!--/row-->
<div id="myModal" class="easyui-dialog" title="删除类型实体"
							style="width: 400px; height: auto; padding: 10px" closed="true"
							data-options="iconCls: 'icon-remove-dialog'" buttons="#dlg-buttons">
							<div>
								<p>确定删除该类型实体吗？</p>
							</div>
						</div>
						<div id="dlg-buttons" style="float: right;">
							<a href="<%=request.getContextPath()%>/${item.uri.replace(':','/')}/delete" class="easyui-linkbutton"
								iconCls="icon-ok-dialog" onclick="dlgOK()">确定</a> <a
								href="javascript:void(0)"
								class="easyui-linkbutton" iconCls="icon-cancel-dialog"
								onclick="dlgCancel()">取消</a>
						</div> <script type="text/javascript">
			$(function() {
				$('#myModal').dialog('close');
			});
			function dlgOK(){
				$('#myModal').dialog('close');
			}
			function dlgCancel(){
				$('#myModal').dialog('close');
			}
</script>